Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update round off vertex to support modification/removal #735

Closed

Conversation

frmdstryr
Copy link
Contributor

This updates the round off vertex tool so the radius can be modified or removed by selecting the center point and re-opening the tool. If the radius is very small (eg set to 0 by editing it) it will undo the round off.

For #657.

I originally had the revert_arc function checking that the magnitude of the radii to each point are roughly the same but it seems they can be off due to rounding so that was removed. Let me know if you find any issues.

@tkornack
Copy link

tkornack commented Sep 7, 2023

This sounds great! Haven't tested yet, but I'm curious how hard is it to make it work when selecting the arc segment instead of the arc center?

@@ -268,6 +269,13 @@ template <typename T> class Coord {
{
return {x, y};
}

std::string str() const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have coord_to_string in geom_util.hpp

@carrotIndustries
Copy link
Member

Sorry for not getting back to this, but you can keep the PR open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants